import http from '@/api/index'

/* 分页查询 */
export function selectByPage (params) {
  return http.get('/depreciation/list', { params })
}
/* 按 id 查询 */
export function selectById (id) {
  return http.get('/depreciation/' + id)
}
/* 新增 */
export function insert (data) {
  return http.post('/depreciation', data)
}
/* 修改 */
export function update (data) {
  return http.put('/depreciation', data)
}
/* 删除 */
export function remove (id) {
  return http.delete('/depreciation/' + id)
}
